<h1>Sell</h1>
<% form_for @trigger do |f| %>
<%= f.error_messages %>
<%= f.hidden_field :user_id %>
<% name, dummy = Ownership.details(@trigger.stock_id) %>
<p>
  Stock:
  <b><%=h name %></b>
</p>
<%= f.hidden_field :stock_id %>
<p>
  Todays Opening Price:
  <b><%=h @opening %></b> (Make sure your quoted price is within 15% up or below this)
</p>
<p>Your Price : <%= f.text_field :price %> </p>
<p>Quantity : <%= f.text_field :quantity %> </p>

<%= f.hidden_field :action %>
  <p>
    <%= f.submit "Create Trigger" %>
  </p>
<% end %>



